using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Subtypes
{
    /// <summary>
    /// <para>Add Subtype</para>
    /// <para>Adds a new subtype to the subtypes in the input table.</para>
    /// <para>将新的子类型添加到输入表中的子类型。</para>
    /// </summary>    
    [DisplayName("Add Subtype")]
    public class AddSubtype : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddSubtype()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_table">
        /// <para>Input Table</para>
        /// <para>The feature class or table containing the subtype definition to be updated.</para>
        /// <para>包含要更新的子类型定义的要素类或表。</para>
        /// </param>
        /// <param name="_subtype_code">
        /// <para>Subtype Code</para>
        /// <para>A unique integer value for the subtype to be added.</para>
        /// <para>要添加的子类型的唯一整数值。</para>
        /// </param>
        /// <param name="_subtype_description">
        /// <para>Subtype Name</para>
        /// <para>A description of the subtype code.</para>
        /// <para>子类型代码的说明。</para>
        /// </param>
        public AddSubtype(object _in_table, long? _subtype_code, object _subtype_description)
        {
            this._in_table = _in_table;
            this._subtype_code = _subtype_code;
            this._subtype_description = _subtype_description;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Add Subtype";

        public override string CallName => "management.AddSubtype";

        public override List<string> AcceptEnvironments => ["autoCommit", "workspace"];

        public override object[] ParameterInfo => [_in_table, _subtype_code, _subtype_description, _out_table];

        /// <summary>
        /// <para>Input Table</para>
        /// <para>The feature class or table containing the subtype definition to be updated.</para>
        /// <para>包含要更新的子类型定义的要素类或表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_table { get; set; }


        /// <summary>
        /// <para>Subtype Code</para>
        /// <para>A unique integer value for the subtype to be added.</para>
        /// <para>要添加的子类型的唯一整数值。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Subtype Code")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public long? _subtype_code { get; set; }


        /// <summary>
        /// <para>Subtype Name</para>
        /// <para>A description of the subtype code.</para>
        /// <para>子类型代码的说明。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Subtype Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _subtype_description { get; set; }


        /// <summary>
        /// <para>Updated Input Table</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_table { get; set; }


        public AddSubtype SetEnv(int? autoCommit = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, workspace: workspace);
            return this;
        }

    }

}